<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://beta.mamsy.ru/" />
<title>schoolout_user_registration</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">schoolout_user_registration</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>http://beta.mamsy.ru/</td>
	<td></td>
</tr>
<tr>
	<td>store</td>
	<td>1</td>
	<td>LoginCounter</td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isElementPresent(&quot;id=input-login_mail&quot;)==true){nextMove=&quot;login&quot;} else {nextMove=&quot;exit&quot;}</td>
	<td>loginPage</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>${loginPage}</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>exit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>id=logout</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (storedVars['LoginCounter'] == 1 ) {storedVars['loginEmail']='schoolout2@gmail.com'} else {}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (storedVars['LoginCounter'] == 2 ) {storedVars['loginEmail']='schoolout2@yandex.ru'} else {}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (storedVars['LoginCounter'] == 3 ) {storedVars['loginEmail']='schoolout2@mail.ru'} else {}</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (storedVars['LoginCounter'] == 4 ) {storedVars['loginEmail']='schoolout3@rambler.ru'} else {}</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>input-register_name</td>
	<td>${loginEmail}</td>
</tr>
<tr>
	<td>type</td>
	<td>input-register_email</td>
	<td>${loginEmail}</td>
</tr>
<tr>
	<td>type</td>
	<td>input-register_pass_</td>
	<td>111111</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=#register-button &gt; input.button__button</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>css=#register-button &gt; input.button__button</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=input-register_pass</td>
	<td>111111</td>
</tr>
<tr>
	<td>click</td>
	<td>css=#register-button &gt; input.button__button</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=logout</td>
	<td></td>
</tr>
<tr>
	<td>while</td>
	<td>${LoginCounter} &lt; 4</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>${LoginCounter}+1</td>
	<td>LoginCounter</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>exit</td>
	<td></td>
</tr>
<tr>
	<td>endWhile</td>
	<td></td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
